//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.imu.security;

public class SessionTokenProviderFactory 
{
    protected SessionTokenProviderFactory() {}

    protected static ISessionTokenProvider getSessionTokenProvider(String className)
    {
        byte var2 = -1;
        switch(className.hashCode())
        {
        	case 63397940:
	            if(className.equals("SessionTokenProvider")) {
	                var2 = 0;
	            }
	            break;
        	case 1866700199:
	            if(className.equals("SessionTokenProviderRedis")) {
	                var2 = 1;
	            }
        }

        switch(var2) 
        {
        	case 0:
        		return SessionTokenProviderMemory.getSessionTokenProvider();
        	case 1:
        		return SessionTokenProviderRedis.getSessionTokenProvider();
        	default:
        		throw new IllegalArgumentException(className + " is not a valid Session Token Provider");
        }
    }

    public static ISessionTokenProvider getSessionTokenProvider() 
    {
        return getSessionTokenProvider("SessionTokenProviderRedis");
    }
}
